<script>
	export default {
		onLaunch: function() {
			// 锁定横屏
			// plus.screen.lockOrientation("landscape-primary");  
			// 锁定竖屏  
			// #ifdef APP-PLUS
			plus.screen.lockOrientation("portrait-primary");
			// #endif
			uni.getStorage({
				key: 'token',
				success(res) {
					console.log(res)
					if (res.data == "") {
						uni.reLaunch({
							url: "/pages/thelogin/thelogin?msg=1"
						})
					}
				},
				fail() {
					uni.reLaunch({
						url: "/pages/thelogin/thelogin?msg=1"
					})
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";

	// 轮播图内置样式
	.indicator {
		@include flex(row);
		justify-content: center;

		&__dot {
			height: 6px;
			width: 6px;
			border-radius: 100px;
			background-color: rgba(255, 255, 255, 0.35);
			margin: 0 5px;
			transition: background-color 0.3s;

			&--active {
				background-color: #ffffff;
			}
		}
	}

	.indicator-num {
		padding: 2px 0;
		background-color: rgba(0, 0, 0, 0.35);
		border-radius: 100px;
		width: 35px;
		@include flex;
		justify-content: center;

		&__text {
			color: #FFFFFF;
			font-size: 12px;
		}
	}

	// // 轮播图自定义高度，给他的父盒子设置高度即可
	// .u-swiper,.u-swiper__wrapper,.u-swiper__wrapper__item__wrapper__image{
	// 	height: 100% !important;
	// 	border-radius: 0 !important;
	// }
</style>
<style lang="scss">
	.mainpadding {
		padding: 30rpx;
	}

	.mainpadding_top {
		padding: 30rpx;
		margin-top: 30rpx;
	}

	.mainpadding2 {
		padding: 0 30rpx 30rpx 30rpx;
	}

	.margin_top {
		margin-top: 30rpx;
	}

	.margin_bottom {
		margin-bottom: 30rpx;
	}

	/*每个页面公共css */
	.mainbgc {
		background-color: #f6f6f6;
		min-height: calc(100vh);
	}

	.white_nowrap {
		white-space: nowrap;
	}
	.textright{
		text-align: right;
	}
	.textleft{
		text-align: left;
	}
	.width300{
		width: 300rpx;
	}
	//超出一行省略号
	.yihang {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.ffffff {
		background-color: #fff;
	}

	/* flex布局 */
	.flextop {
		display: flex;
		align-items: flex-start;
		justify-content: center;
	}

	.flexcenter {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.flexcolumn {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}

	.flexbottom {
		display: flex;
		align-items: flex-end;
		justify-content: center;
	}

	.flexbetween {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.flexleft {
		display: flex;
		align-items: center;
	}

	.flexright {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}

	.flexaround {
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	/* 主色调 */
	.maincolor {
		color: #3476fe;
		font-weight: 800;
	}

	/* 顶部右边内容 */
	.header_rightmsg {
		position: relative;
	}

	.rightmsg_content {
		height: 187rpx;
		position: absolute;
		top: 0;
		right: 30rpx;
		font-size: 32rpx;
		/* padding-top: 110rpx; */
		padding-top: 32rpx;
		display: flex;
		align-items: center;
	}

	.placeholderimg {
		margin-top: 300rpx;
		width: 400rpx;
		height: 400rpx;
		background-image: url("@/static/imags/all/placeholderimg.png");
		background-size: 100% 100%;
	}

	/* 圆角 */
	.radius {
		border-radius: 20rpx;
	}

	/* 下拉图标 */
	.selecticon {
		width: 27rpx;
		height: 17rpx;
		background-image: url("@/static/imags/myemploy/select.png");
		background-size: 100% 100%;
	}

	.selecticon2 {
		width: 27rpx;
		height: 17rpx;
		margin-top: 5rpx;
		margin-left: 10rpx;
		background-image: url("@/static/imags/all/selecticon.png");
		background-size: 100% 100%;
	}

	// 时间选择器
	.selecttime {
		height: 71rpx;
		padding: 0 20rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
		width: 230rpx;
		background-color: #fff;
	}

	.timeicon {
		margin-top: 5rpx;
		margin-left: 10rpx;
		width: 27rpx;
		height: 27rpx;
		background-image: url("@/static/imags/myemploy/time.png");
		background-size: 100% 100%;
	}

	.timeicon2 {
		margin-top: 5rpx;
		margin-left: 10rpx;
		width: 27rpx;
		height: 27rpx;
		background-image: url("@/static/imags/myemploy/time2.png");
		background-size: 100% 100%;
	}

	// 筛选
	.screen_target {
		height: 71rpx;
		padding: 0 20rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
	}

	.zdytext {
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #333333;
	}

	// 电话
	.callphone {
		margin-left: 10rpx;
		width: 39rpx;
		height: 39rpx;
		background-image: url("@/static/imags/myemploy/phone.png");
		background-size: 100% 100%;
	}

	.addressicon {
		// float: right;
		margin-left: 10rpx;
		width: 39rpx;
		min-width: 39rpx;
		height: 39rpx;
		background-image: url("@/static/imags/mainrank/address.png");
		background-size: 100% 100%;
	}

	// 顶部
	.rightmsg_content {
		margin-top: 30rpx;
	}

	// 加号
	.add {
		width: 32rpx;
		height: 32rpx;
		background-image: url("@/static/imags/myemploy/add.png");
		background-size: 100% 100%;
	}

	// 编辑
	.editoricon {
		width: 32rpx;
		height: 33rpx;
		background-image: url("@/static/imags/myemploy/eadit.png");
		background-size: 100% 100%;
	}

	// 箭头
	.rightjt {
		width: 17rpx;
		height: 28rpx;
		background-image: url("@/static/imags/myemploy/rightjt.png");
		background-size: 100% 100%;
	}

	/* 每个页面的背景色 */
	.bgcolor {
		background-color: #F6F6F6;
		min-height: 100vh;
	}

	/* 按钮样式配合flexcenter使用 */
	.buttonStyle {
		position: sticky;
		left: 4%;
		bottom: 20rpx;
		z-index: 9999;
		width: 100%;
		background: #3476fe;
		border-radius: 20rpx;
		color: #fff;
		font-weight: 800;
		padding: 20rpx 0;
	}

	// 按钮
	.btn {
		text-align: center;
		width: 100%;
		padding: 30rpx 0;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: #FFFFFF;
		background-color: #3476fe;
		border-radius: 20rpx;
	}

	// 自定义tab
	.tabtags {
		margin-top: 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
	}

	.outline {
		height: 6rpx;
		width: 100rpx;
		background-color: #3476fe;
		border-radius: 10rpx;
		margin-top: 20rpx;
	}

	.noline {
		height: 6rpx;
		width: 100rpx;
		background-color: #fff;
		border-radius: 10rpx;
		margin-top: 20rpx;
	}

	.focus {
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 800;
		// color: #3476fe;
		color: #3476fe;
	}

	.nofocus {
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: #999999;
	}

	// 身份证
	.sfszm {
		width: 130rpx;
		height: 90rpx;
		margin-bottom: 17rpx;
		background-image: url('@/static/imags/upload/sfzzm.png');
		background-size: 100% 100%;
	}

	.sfsfm {
		width: 130rpx;
		height: 90rpx;
		margin-bottom: 17rpx;
		background-image: url('@/static/imags/upload/sfzfm.png');
		background-size: 100% 100%;
	}

	// 营业执照
	.yyzz {
		width: 105rpx;
		height: 119rpx;
		margin-bottom: 17rpx;
		background-image: url('@/static/imags/upload/yyzz.png');
		background-size: 100% 100%;
	}

	.word12 {
		color: #666;
		font-size: 32rpx;
	}

	// 删除图标
	.deleteIMg {
		position: absolute;
		top: -20rpx;
		right: -20rpx;
		width: 40rpx;
		height: 40rpx;
		background-image: url('@/static/imags/mypage/delete.png');
		background-size: 100% 100%;
	}

	.inputsearch {
		padding: 15rpx 30rpx;
		width: 80%;
		background-color: #f0f0f0;
		border-radius: 50rpx;

	}

	// 筛选弹框样式表
	.surebtn {
		width: 45%;
		background-color: #3476fe;
		border-radius: 50rpx;
		padding: 20rpx 0;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #fff;
	}

	.reset {
		background: #ebb563;
	}

	.zwscreenbox {
		width: 20%;
		line-height: 80rpx;
	}

	.itemscreen {
		width: 200rpx;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		border-radius: 50rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
		background-color: #f7f9fa;
	}

	.inputscreenbox {
		width: 40%;

		input {
			width: 100%;
			height: 80rpx;
			line-height: 80rpx;
			text-align: center;
			border-radius: 50rpx;
			font-size: 28rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #333;
			background-color: #f7f9fa;
		}
	}

	.editbtn {
		padding: 5rpx 20rpx;
		color: #3476fe;
		border: 1rpx solid #3476fe;
		border-radius: 50rpx;
		font-size: 36rpx;
	}

	.margin_right6 {
		margin-right: 60rpx;
	}
	.margin_right {
		margin-right: 30rpx;
	}
	.paybtn {
		padding: 5rpx 20rpx;
		color: #fff;
		border: 1rpx solid #3476fe;
		background-color: #3476fe;
		border-radius: 50rpx;
		font-size: 26rpx;
	}
</style>